package com.fjnldx.mes.domain.pojo.alarm.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 触发类型
 */
public enum TriggerTypeEnum {
    IMMEDIATE("立即", 0),
    DELAY("延迟", 1),
    CUMULATIVE("累次", 2);

    private final String name;

    @JsonValue
    @EnumValue
    private final Integer value;

    TriggerTypeEnum(String name, int value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public int getValue() {
        return value;
    }
}
